import time

from django.db import models

# Create your models here.
class Img(models.Model):
    img = models.ImageField(upload_to='resources/img/{}/'.format(int(time.time())))
    name = models.CharField(max_length=250)
    ctime = models.DateTimeField(verbose_name="创建时间", auto_now=True)

